﻿using MaxStoreErp.Core.BaseClasses;
using MaxStoreErp.Core.Services;
using Microsoft.Practices.Unity;

namespace MaxStoreErp.Shell.MainMenu
{
    internal class MainMenuPresenter : PresenterBase<MainMenuView, MainMenuViewModel>
    {
        [Dependency]
        public IMainMenuService MainMenuService { get; set; }

        protected override void OnDataLoading()
        {
            base.OnDataLoading();
            ViewModel.MenuItems = MainMenuService.Items;
        }
    }
}
